package com.lazy.study.webhello.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by lazy on 17-5-16.
 */
@RestController// 标记为：restful
public class HelloController {
    @RequestMapping("/")
    public String hello(){
        return"Hello world!";
    }
}
